<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="w" uri="http://www.groupwareworkbench.org.br/widgets/commons" %>
<%@ taglib prefix="tag" uri="http://www.groupwareworkbench.org.br/widgets/tag" %>
<%@ taglib prefix="recommend" uri="http://www.groupwareworkbench.org.br/widgets/recommend" %>
<%@ taglib prefix="comment" uri="http://www.groupwareworkbench.org.br/widgets/comment" %>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta http-equiv="Cache-Control" content="no-cache">
        <title>Not&iacute;cias</title>
        <link rel="shortcut icon" type="image/x-icon" href="${pageContext.request.contextPath}/images/favicon.ico" />
        <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/reset.css" />
        <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/common.css" />
        <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/tagcloud.css" />
        <script type="text/javascript" src="${pageContext.request.contextPath}/js/listagem.js"></script>
        <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.js"></script>
        <tag:scriptTags />
    </head>
    <body>
        <w:topo collabletInstance="${newsMgr}" />
        <w:conteudoPagina titulo="News:">
            <br />
            <%-- TODO: Tableless! --%>
            <form name="dados" method="post" action="<c:url value="/groupware-workbench/${newsMgr.id}/news/${news.id}/show" />">
                <input type="hidden" name="news.id" value="<c:out value="${news.id}" />" />
                <table cellpadding="3" width="95%">
                    <tr>
                        <td><h2><c:out value="${news.title}" /></h2></td>
                    </tr>
                    <tr>
                         <td><b><c:out value="${news.subTitle}" /></b></td>
                    </tr>
                    <tr>
                         <td align="left"><c:out value="${news.body}" escapeXml="false" /></td>
                    </tr>
                    <tr>
                        <td>
                            <c:if test="${tagMgr != null}">
                                <tag:getTags tagMgr="${tagMgr}" idObject="${news.id}" showTitle="true" tagsClass="cloud5" />
                            </c:if>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <br/>
                            <c:if test="${recommendMgr != null}">
                                <recommend:simpleList genericEntity="${news}" recommendMgr="${recommendMgr}" />
                            </c:if>
                        </td>
                    </tr>
                    <tr>
                        <td style="padding: 15px">
                            <c:if test="${commentMgr != null}">
                                <comment:getComments commentMgr="${commentMgr}" idObject="${news.id}" />
                                <comment:addComment commentMgr="${commentMgr}" idObject="${news.id}" user="${sessionScope.userLogin}" />
                               	<input type="submit" class="botao" value="Ok" />
                            </c:if>
                        </td>
                    </tr>
                </table>
                <br />
                <br />
            </form>
            <div class="barra_botoes">
                <w:voltar collabletInstance="${newsMgr}" />
            </div>
        </w:conteudoPagina>
    </body>
</html>